package com.jimmy.medical.repository;

import com.jimmy.medical.entity.FlowOrder;
import com.jimmy.medical.entity.FlowOrderLog;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface FlowOrderLogRepository extends JpaSpecificationExecutor<FlowOrderLog>, PagingAndSortingRepository<FlowOrderLog, Long> {

    public List<FlowOrderLog> findByFlowOrderOrderByTimeFinishDesc(FlowOrder flowOrder);
}
